﻿using UnityEngine;
using System.Collections;

public class UI_scale : MonoBehaviour {

	public Camera cam;
	Vector3 newScale = new Vector3(1f,1f,1f);
	float bufer;

	// Use this for initialization
	void Awake () {
	
	}
	
	// Update is called once per frame
	void Update () 
	{
		bufer = cam.orthographicSize / 21.56f;
		newScale = new Vector3(bufer,bufer,bufer);
		gameObject.transform.localScale = newScale;


	}
}
